package icu.luoxi.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 任务执行日志表
 * </p>
 *
 * @author 洛希极限
 * @since 2025-05-06
 */
@Getter
@Setter
@TableName("sys_task_execution_log")
@ApiModel(value = "TaskExecutionLog对象", description = "任务执行日志表")
public class TaskExecutionLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId("id")
    private String id;

    @ApiModelProperty("任务标识")
    @TableField("task_key")
    private String taskKey;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty("执行状态：0-失败，1-成功")
    @TableField("execution_status")
    private Integer executionStatus;

    @ApiModelProperty("错误信息")
    @TableField("error_message")
    private String errorMessage;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
